<h1>Listing address_books</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Address</th>
    <th>Description</th>
    <th>Telephone number</th>
    <th>Extension number</th>
    <th>Sms number</th>
    <th>Contact person</th>
  </tr>

<% @address_books.each do |address_book| %>
  <tr>
    <td><%=h address_book.title %></td>
    <td><%=h address_book.address %></td>
    <td><%=h address_book.description %></td>
    <td><%=h address_book.telephone_number %></td>
    <td><%=h address_book.extension_number %></td>
    <td><%=h address_book.sms_number %></td>
    <td><%=h address_book.contact_person %></td>
    <td><%= link_to 'Show', address_book %></td>
    <td><%= link_to 'Edit', edit_address_book_path(address_book) %></td>
    <td><%= link_to 'Destroy', address_book, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New address_book', new_address_book_path %>